/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  UserAuthor.java 2016-02-02 11:50:47 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class UserAuthor extends BaseDomain{
    private String name;
    private String sex;
    private String intro;
    private String birthday;
    private String year;
    private String school;
    private String company;
    private String works;
    private String qq;
    private String wx;

	public UserAuthor(){
	}
    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return this.name;
    }
    public void setSex(String value) {
        this.sex = value;
    }

    public String getSex() {
        return this.sex;
    }
    public void setIntro(String value) {
        this.intro = value;
    }

    public String getIntro() {
        return this.intro;
    }
    public void setBirthday(String value) {
        this.birthday = value;
    }

    public String getBirthday() {
        return this.birthday;
    }
    public void setYear(String value) {
        this.year = value;
    }

    public String getYear() {
        return this.year;
    }
    public void setSchool(String value) {
        this.school = value;
    }

    public String getSchool() {
        return this.school;
    }
    public void setCompany(String value) {
        this.company = value;
    }

    public String getCompany() {
        return this.company;
    }
    public void setWorks(String value) {
        this.works = value;
    }

    public String getWorks() {
        return this.works;
    }
    public void setQq(String value) {
        this.qq = value;
    }

    public String getQq() {
        return this.qq;
    }
    public void setWx(String value) {
        this.wx = value;
    }

    public String getWx() {
        return this.wx;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Name",getName())
			.append("Sex",getSex())
			.append("Intro",getIntro())
			.append("Birthday",getBirthday())
			.append("Year",getYear())
			.append("School",getSchool())
			.append("Company",getCompany())
			.append("Works",getWorks())
			.append("Qq",getQq())
			.append("Wx",getWx())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof UserAuthor == false) return false;
		if(this == obj) return true;
		UserAuthor other = (UserAuthor)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

